﻿@{
    WebApp.Settings.JsonSettings jsonSettingsData = WebApp.Settings.JsonSettings.ReadFromJson();
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <title>@ViewBag.Title - Accufind CMS</title>

    @Styles.Render("~/Content/uicss")
    @Styles.Render("~/Content/uicsscustom")
    @Scripts.Render("~/bundles/modernizr")

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>
<body class="hold-transition skin-accufind-light layout-top-nav">
    <div class="wrapper">
        <!-- Main Header -->
        <header class="main-header">
            <nav class="navbar navbar-static-top">
                <div class="container">
                    <div class="navbar-header">
                        <a href="@Url.Action("Website","Home")" target="_blank" class="public-header-brand navbar-brand welcome-header-logo">
                            <img src="~/img/accufind-logo-mini.png" />
                        </a>
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
                            <i class="fa fa-bars"></i>
                        </button>
                    </div>
                    <div class="collapse navbar-collapse pull-left" id="navbar-collapse">
                        <ul class="nav navbar-nav">
                            @if (jsonSettingsData.WelcomeMenuNames != null && jsonSettingsData.WelcomeMenuNames.Count() > 0)
                            {
                                foreach (var menuItem in jsonSettingsData.WelcomeMenuNames)
                                {
                                    <li><a href="@menuItem.Url" target="_blank">@menuItem.Name</a></li>
                                }
                            }
                        </ul>
                    </div><!-- /.navbar-collapse -->
                    <!-- Navbar Right Menu -->
                    <div class="navbar-custom-menu">
                        <ul class="nav navbar-nav">
                            <!-- User Account Menu -->
                            @Html.Partial("_LoginPartial")
                        </ul>
                    </div><!-- /.navbar-custom-menu -->
                </div><!-- /.container-fluid -->
            </nav>
        </header>

        <!-- Full Width Column -->
        <div class="content-wrapper">
            <div class="container">
                <!-- Main content -->
                <section class="content">
                    @RenderBody()
                </section><!-- /.content -->
            </div><!-- /.container -->
        </div><!-- /.content-wrapper -->

        <footer class="main-footer">
            <div class="container">
                <div class="pull-right hidden-xs">
                    @if (!jsonSettingsData.FooterLinks.TermsOfService.IsEmpty())
                    {
                        <a href="@jsonSettingsData.FooterLinks.TermsOfService.Url" target="_blank">@jsonSettingsData.FooterLinks.TermsOfService.Name</a>
                    }
                    else
                    {
                        <a href="#" target="_blank">&nbsp;</a>
                    }
                </div>
                <strong>&copy; @DateTime.Now.Year - <a href="@jsonSettingsData.FooterLinks.CopyRightLink.Url">&nbsp;@jsonSettingsData.FooterLinks.CopyRightLink.Name</a></strong> &nbsp;
            </div><!-- /.container -->
        </footer>
    </div><!-- ./wrapper -->
       
    <!-- REQUIRED JS SCRIPTS -->
    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/uijs")
    <script>
        $(function () {
            $('input').iCheck({
                checkboxClass: 'icheckbox_square-blue',
                radioClass: 'iradio_square-blue',
                increaseArea: '20%'
            });
        });
    </script>
    @RenderSection("scripts", required: false)

</body>
</html>